package cn.youqu.happy.module.youqu.controller.admin.userActivity.vo;

import cn.youqu.happy.module.youqu.enums.userActivity.UserActivityStatusEnum;
import lombok.*;
import java.util.*;
import io.swagger.annotations.*;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.youqu.happy.framework.excel.core.annotations.DictFormat;
import cn.youqu.happy.framework.excel.core.convert.DictConvert;


/**
 * 用户发起活动 Excel VO
 *
 * @author 王其岩 20112001045
 */
@Data
public class UserActivityExcelVO {

    @ExcelProperty("主键")
    private Integer id;

    @ExcelProperty("活动id")
    private Integer activityId;

    @ExcelProperty("用户id")
    private Long uid;

    @ExcelProperty("活动名")
    private String activityName;

    @ExcelProperty("图片")
    private String img;

    @ExcelProperty("组队口号")
    private String teamSlogan;

    @ExcelProperty("地点")
    private String address;

    @ExcelProperty("详细内容")
    private String detail;

    @ExcelProperty("当前成员数量")
    private Integer currentPartners;

    @ExcelProperty("最大成员数量")
    private Integer maxPartners;

    @ExcelProperty("最小成员数量")
    private Integer minPartners;

    @ExcelProperty("预约时间")
    private Date appointTime;

    @ExcelProperty("截止时间")
    private Date endTime;

    /**
     * {@link UserActivityStatusEnum}
     */
    @ExcelProperty(value = "活动状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer activityStatus;

    @ExcelProperty("创建时间")
    private Date createTime;

    @ExcelProperty("备注")
    private String remark;

}
